TimeoutError   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 19
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

2 Functions

Rating   Name   Duplication   Size   Complexity  
A errorStatus 0 3 1
A name 0 3 1
1
import makeAppError from './app-error.js';
2
3 9
const AppError = makeAppError();
4
5
class TimeoutError extends AppError {
6
    /**
7
     * Get the error name
8
     *
9
     * @return {string}
10
     */
11
    get name() {
12 7
        return 'TimeoutError';
13
    }
14
15
    /**
16
     * Get the error status
17
     *
18
     * @return {number}
19
     */
20
    get errorStatus() {
21 4
        return 408;
22
    }
23
}
24
25
export default TimeoutError;
26